package com.sz.biz.common.project.service;

import com.sz.biz.common.project.entity.ProjectQuestion;

import java.util.List;

/**
 * Function: TODO: ADD FUNCTION <br>
 * Author: qiankun<br>
 * Date: 2017-07-13 10:17:00
 */
public interface ProjectQuestionService {

    /**
     *通过数据id删除
     *
     */
    void delete(int id);

    /**
     * 通过项目id删除
     *
     * @param projectId
     */
    void deleteByProjectId(int projectId);

    /**
     * 增加一个问题
     * @param projectQuestion
     * @return
     */
    int addQuestion(ProjectQuestion projectQuestion);



    /**
     * 通过projectid 查询相关记录
     * @param projectId projectId
     * @param type type
     * @return List
     */
    List<ProjectQuestion> queryByProjectIdAndType(int projectId,int type);
}
